mind like a steel trap, have a

Be very quick to understand something, as in Aunt Ida may be old, but she still has a mind like a steel trap. This simile likens the snapping shut of an animal trap to a quick mental grasp.